package com.wml.sellPhone.service.impl;

import com.wml.sellPhone.dao.OrderDetailMapper;
import com.wml.sellPhone.pojo.OrderDetail;
import com.wml.sellPhone.service.IOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 订单详情服务实现类
 *
 * @author Hayes
 * @date 2018-06-29 22:45
 */
@Service
public class OrderDetialServiceImpl implements IOrderDetailService {

    @Autowired
    private OrderDetailMapper orderDetailMapper;
    /**
     * 根据订单详情实例保存
     * @param orderDetail 订单详情实例
     * @return
     */
    @Override
    public boolean save(OrderDetail orderDetail) {
        return orderDetailMapper.insert(orderDetail) > 0;
    }
}
